Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Telephony /
Chapter 3 - Directory Numbers / Directory Number Reference
Directory Number Functions / Setting Directory Number Features


TELDNSetAutoAnswer

Enables or disables routing of auto-answered incoming calls to your application.

pascal TELErr TELDNSetAutoAnswer (
                     TELDNHandle hTELDN, 
                     Boolean AutoAnswerOn);
hTELDN
A handle to a directory number structure.
AutoAnswerOn
A Boolean value that indicates whether to enable (true) or disable (false) routing of auto-answered incoming calls for the specified directory number.
function result
A result code.
DESCRIPTION
The TELDNSetAutoAnswer function enables or disables routing of auto-answered incoming calls for the directory number specified by the hTELDN parameter, according to the value passed in the AutoAnswerOn parameter. If AutoAnswerOn is true, the autoAnswerAvail flag of the featureFlags field in the directory number structure is set and all subsequent incoming calls are routed to your application. If AutoAnswerOn is false, the autoAnswerAvail flag of the featureFlags field in the directory number structure is cleared. In addition, when AutoAnswerOn is false, your application's call saver feature is also turned off.

SPECIAL CONSIDERATIONS
More than one application can set the Auto-answer feature of a directory number. However, if more than one application sets the Auto-answer feature of a directory number, the telDNSetAutoAnswerMsg message is sent only to the telephone tool for the first application to set that feature.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help